package com.hurui.xiaoming.ImageLoader;

import android.content.Context;
import android.widget.ImageView;


/**
 * Created by Administrator on 2017/7/10.
 */

public class ImageLoader {

    public static final int circle = 0 ;


    public static void LoaderImage(Context context , int loadingId , int errorId , int placeId , ImageView view , Integer status){
        if(status == null) {
//            Glide.with(context).load(loadingId).e
//            Glide.with(context).load(loadingId).error(errorId).placeholder(placeId).into(view);
        }else if(status == 0){
//            Glide.with(context).load(loadingId).error(errorId).placeholder(placeId).bitmapTransform(new GlideCircleTransform(context)).into(view);
        }
    }


    public static void LoaderImage(Context context , int loadingId , int errorId , ImageView view ,Integer status){
        if(status == null) {
//            Glide.with(context).load(loadingId).error(errorId).into(view);
        }else if(status == 0){
//            Glide.with(context).load(loadingId).error(errorId).bitmapTransform(new GlideCircleTransform(context)).into(view);
        }
    }

    public static void LoaderImage(Context context , String loadingStr , int errorId , ImageView view ,Integer status){
        if(status == null) {
//            Glide.with(context).load(loadingStr).error(errorId).into(view);
        }else if(status == 0){
//            Glide.with(context).load(loadingStr).error(errorId).bitmapTransform(new GlideCircleTransform(context)).into(view);
        }
    }



}
